package com.yk.framework.gui.core;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import com.yk.framework.gui.core.impl.ActionHandle;

/**
 * @author lifetime
 *
 */
@SuppressWarnings("serial")
public abstract class AbstractYKAction extends AbstractAction implements IYKAction{
	private Object actionObject;

	public AbstractYKAction() {
		
	}

	public void actionPerformed(ActionEvent e) {
		ActionHandle.beforeActionPerformed(this,e);
		doAction(e);
		ActionHandle.afterActionPerformed(this,e);
	}
	
	public Object getActionObject() {
		return actionObject;
	}

	public void setActionObject(Object actionObject) {
		this.actionObject = actionObject;
	}

}
